home *** CD-ROM | disk | FTP | other *** search
- global gMasterData, gSection, gReviewData
-
- on initReviewData
- if voidp(gReviewData) then
- set gReviewData to [#spin: 0, #score: 0, #userdata: [[EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY], 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, [0, 0, 0, 0], 0, 0, 0, 0, 0, 0, 0, 0]]
- end if
- if the spin of gReviewData <> 0 then
- set the spin of gReviewData to 0
- end if
- end
-
- on spinFlasher
- global gFlashTime
- set vFlashSprite to 4
- set vNewTime to the ticks
- if vNewTime > (gFlashTime + 60) then
- set vThisName to the name of member the member of sprite vFlashSprite
- case vThisName of
- "spin1":
- set the member of sprite vFlashSprite to member "spin2"
- "spin2":
- set the member of sprite vFlashSprite to member "spin1"
- end case
- set gFlashTime to the ticks
- end if
- end
-
- on spinDone
- set the spin of gReviewData to the spin of gReviewData + 1
- set vSpin to the spin of gReviewData
- setTitleArt(vSpin)
- if vSpin = 1 then
- restoreFirst()
- end if
- go("r" & string(the spin of gReviewData))
- voiceQuestion(vSpin)
- end
-
- on setTitleArt vSpin
- set vTitleSprite to 2
- case vSpin of
- 1:
- set the member of sprite vTitleSprite to member "process"
- 6:
- set the member of sprite vTitleSprite to member "strategies"
- 11:
- set the member of sprite vTitleSprite to member "cost/benefit"
- 16:
- set the member of sprite vTitleSprite to member "ind/group"
- 21:
- set the member of sprite vTitleSprite to member "group2"
- end case
- end
-
- on voiceQuestion vSpin
- set vAudioFiles to ["163", "164", "165", "166", "167", "168", "169", "170", "171", "172", "173", "174", "175", "176", "177", "178", "179", "180", "181", "182", "183", "184", "185", "186", "187"]
- goNarrator(gMasterData, getAt(vAudioFiles, vSpin))
- end
-
- on restoreFirst
- set vAnswers to getAt(the userdata of gReviewData, 1)
- if vAnswers = [EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY] then
- repeat with X = 1 to 6
- set the text of member ("qfield" & string(X)) to EMPTY
- end repeat
- else
- repeat with X = 1 to 6
- set the text of member ("qfield" & string(X)) to getAt(vAnswers, X)
- end repeat
- end if
- end
-